package com.tepth.vehiclemaintenance.mvp.login;

import com.tepth.vehiclemaintenance.base.BaseModel;
import com.tepth.vehiclemaintenance.base.BasePresenter;
import com.tepth.vehiclemaintenance.base.BaseView;
import com.tepth.vehiclemaintenance.bean.User;
import com.tepth.vehiclemaintenance.net.ApiModel;

import io.reactivex.Observable;

/**
 * Created by zhangyu on 2017/5/9.
 */

public class LoginContract {

    interface View extends BaseView {
        String getAccount();

        String getPassword();
        void showUser(User user);
    }

    interface Model extends BaseModel {
        Observable<ApiModel<User>> onLogin(String account, String password);
    }

    abstract static class Presenter extends BasePresenter<Model, View> {

        @Override
        public void onStart() {

        }

        abstract void login();
    }
}